package com.dwy2002.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dwy2002.common.Result;
import com.dwy2002.pojo.po.courses.CourseEnrollments;
import com.dwy2002.pojo.vo.courses.CoursesVO;

import java.util.List;

/**
 * @author 杜伟毅
 * @version 1.0
 * @since 2025/03/02
 */
public interface ICourseEnrollmentService extends IService<CourseEnrollments> {
    /**
     * 删除报名关系
     *
     * @param courseIds 课程id集合
     * @author 杜伟毅
     * @since 2025/3/2 0002 22:00
     */
    void deleteEnrollment(List<String> courseIds);

    /**
     * 获取课程报名id
     *
     * @param courseId 课程id
     * @return 返回课程报名id
     * @author 杜伟毅
     * @since 2025/3/11 0011 17:12
     */
    String getCourseEnrollmentsId(String courseId);

    /**
     * 返回用户全部报名课程
     *
     * @author 杜伟毅
     * @since 2025/4/2 0002 17:06
     */
    Result<List<CoursesVO>> getUserEnrollments();
}
